package com.cong.patternpractise.singleton.innerclass;

/**
 * Created by Cong
 * 内部类形式
 */

public class SingletonBean {

    private SingletonBean() {

    }

    public static SingletonBean getInstance() {
        return SingletonHolder.instance;
    }

    private static class SingletonHolder {
        private static final SingletonBean instance = new SingletonBean();
    }

}
